xl: fix compiler warnings
authorAndre Przywara <andre.przywara@amd.com>
Mon, 12 Dec 2011 17:43:15 +0000 (17:43 +0000)
committerAndre Przywara <andre.przywara@amd.com>
Mon, 12 Dec 2011 17:43:15 +0000 (17:43 +0000)
commit0eefd1091284ac85e403cbe68ed133b51b7f046a
treea30e8d2c1833f345173116c9e621805513eac9a5
parent5c4d8c7d1b2d42ae575e44561a5860b4e0f6eee6
xl: fix compiler warnings

either GCC 4.6.1 or Ubuntu add -Werror=format-security to the -Wall set,
so libxl compilation breaks:
   libxl_create.c: In function 'store_libxl_entry':
   libxl_create.c:454:9: error: format not a string literal and no
format arguments [-Werror=format-security]
   cc1: all warnings being treated as errors

Attached patch fixes this and another occurrence.

Patch from: Uwe Dannowski

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_device.c